Current Location: Home> Function Categories> date_parse_from_format

date_parse_from_format

Get information about a given date formatted according to the specified format
Name:date_parse_from_format
Category:Date and time
Programming Language:php
One-line Description:Returns an associative array with detailed information about the specified date according to the specified format.

Definition and usage

The date_parse_from_format() function returns an associative array containing the specified date information according to the specified format.

Example

Return an associative array containing the specified date information according to the specified format:

 <?php
print_r ( date_parse_from_format ( "mmddyyyy" , "05122013" ) ) ;
?>

Try it yourself

grammar

 date_parse_from_format ( format , date ) ;
parameter describe
format Required. Specify format (the format accepted by date_create_from_format() ).
date Required. Specifies the date, string value.
Similar Functions
Popular Articles